<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColStatusToAuthorizerInfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('authorizer_infos', function (Blueprint $table) {
            $table->integer('status')->default(0)
                ->comment('授权状态:0未完成，1已完成，2已取消，3小程序待提交审核，4小程序审核中，5小程序待全网发布，6小程序已上线');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('authorizer_infos', function (Blueprint $table) {
            //
        });
    }
}
